package cn.lysj.framework.coupon.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ZhangWenJian
 * @data 2019/1/21--14:52
 * @description 设置会员优惠券活动中的下拉框vo
 */
@Data
public class SelectCouponVo {
    private String id;
    private String name;
    private String storeId;           //商户Id
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal fullReductionMoney;  //满减金额
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal discountMoney; //优惠金额
    private Integer shareType;        //份额类型 1.无限制 2.有限制 指定分发份数
    private Integer share;            //份额
    private Integer validPeriod;      //有效天数

    public SelectCouponVo() {
    }

    public SelectCouponVo(String id,String name, String storeId, BigDecimal fullReductionMoney, BigDecimal discountMoney, Integer shareType, Integer share, Integer validPeriod) {
        this.id = id;
        this.name = name;
        this.storeId = storeId;
        this.fullReductionMoney = fullReductionMoney;
        this.discountMoney = discountMoney;
        this.shareType = shareType;
        this.share = share;
        this.validPeriod = validPeriod;
    }
}
